<?php

namespace App\Model;

class
ShopModel extends BaseModel
{
    protected $table = 'shops';
    protected $primaryKey = 'shop_id';

    protected $fillable = [
        'shop_name',
        'img_url',
        'user_id',
        'province_id',
        'city_id',
        'area_id',
        'address_po',
        'shop_address'
    ];

    public function userInfo(): \Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(UsersModel::class,'user_id','user_id');
    }
}
